var SHOW_INTERVAL = 100;
var end = {
    milliSecond: 0,
    second: 35,
    minute: 14,
    hour: 15,
    date: 21,
    month: 12,
    year: 2012
};

var pad = function(str, char, len) {
    str = str.toString();
    var chars = [];
    var length = len - str.length;
    for (var i = 0; i != length; ++i) {
        chars.push(char);
    }
    return str + chars.join('');
};

var getTime = function() {
    var nowDate = Date.now();
    var endDate = new Date();
    endDate.setMilliseconds(end.milliSecond);
    endDate.setSeconds(end.second);
    endDate.setMinutes(end.minute);
    endDate.setHours(end.hour);
    endDate.setDate(end.date);
    endDate.setMonth(end.month - 1);
    endDate.setFullYear(end.year);

    var seconds = Math.floor((endDate - nowDate) / 1000);
    var oneTenthSecond = (endDate.valueOf() - nowDate) % 1000
    return seconds + '.' + pad(oneTenthSecond, '0', 3);
};
